package com.vishnu.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.vishnu.jb.UserRegistrationFormFB;

public class BMSAction extends Action  {

	public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response){
		
		System.out.println("entered into actionforward.....");
		ActionForward af=null;
		af=mapping.findForward("success");
		
		UserRegistrationFormFB userLoginFormJB	=(UserRegistrationFormFB)form;
		
		System.out.println("------Action class--------");
		
		System.out.println("username="+userLoginFormJB.getUserName());
		System.out.println("Password="+userLoginFormJB.getPassword());
		System.out.println("RetypePassword="+userLoginFormJB.getRetypePassword());
		System.out.println("Email Id="+userLoginFormJB.getEmailId());
		System.out.println("age="+userLoginFormJB.getAge());
		System.out.println("dob="+userLoginFormJB.getDob());
		


		return af;
	}
}
